import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class FriendsAlbumTab extends StatelessWidget {
  const FriendsAlbumTab({super.key});

  @override
  Widget build(BuildContext context) {

    void onPressed() {
      debugPrint('点击了按钮');
      Fluttertoast.showToast(
        msg: '操作成功！',
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIosWeb: 1,
        backgroundColor: Colors.green,
        textColor: Colors.white,
        fontSize: 16.0,
      );
    }
    return Center(
        child: ElevatedButton(
            onPressed: onPressed,
            child: const Text('显示弹框')
        )
    );
  }
}
